import time

def buble(mas):
    swapped = True
    while swapped:
        swapped = False
        for i in range(len(mas) - 1):
            if int(mas[i]) > int(mas[i+1]):
                mas[i],mas[i+1] = mas[i+1],mas[i]
                swapped = True
    return mas

f1=open('m1_sorted.txt')
f2=open('m2_reverse.txt')
f3=open('m3_shuffle.txt')
array1=f1.readlines()
array2=f2.readlines()
array3=f3.readlines()

t_start = time.time()
x = buble(array1)
t_finish = time.time()
print('Time m1', round((t_finish - t_start)) * 1000, 'ms')

t_start = time.time()
x = buble(array2)
t_finish = time.time()
print('Time m2', round((t_finish - t_start)) * 1000, 'ms')

t_start = time.time()
x = buble(array3)
t_finish = time.time()
print('Time m3', round((t_finish - t_start)) * 1000, 'ms')
'''
for i in x:

